package com.zhijian.medical.entity.vo.request;

import com.zhijian.medical.entity.po.ExperimentProcessSampleReady;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 样本准备新增类
 *
 * @author HCG
 * @version 1.0
 * @date 2022/8/19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "样本准备新增类")
public class ExperimentProcessSampleReadySaveOrUpdateOutVo extends ExperimentProcessSampleReady implements Serializable {

    private static final long serialVersionUID = -4740666895094362778L;

    /**
     * 样本修改数据
     */
    @ApiModelProperty("样本修改数据")
    @NotNull(message = "样本修改数据最少为1")
    @Size(min = 1, message = "样本修改数据最少为1")
    @Valid
    private List<ExperimentProcessSampleReadyUpdateVo> samples;

    /**
     * 样本准备修改类
     */
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    @Api(tags = "样本准备修改类")
    public static class ExperimentProcessSampleReadyUpdateVo {

        /**
         * 样本id
         */
        @ApiModelProperty("样本id")
        @NotNull(message = "样本id不能为空")
        private Long sampleId;

        /**
         * 肿瘤细胞比例
         */
        @ApiModelProperty("肿瘤细胞比例")
        private String zlxbbl;
    }

}
